Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
how to use "selection" event listener on autoComplete javascript library

I've been spending the last few days trying to figure out how to use TarekRaafat's autoComplete.js on one of my input box. my current problem is, when I click one of the options, nothing happens. here's what I tried: https://jsfiddle.net/vjyLagh8/14/

the console.log in 'selection' event are not called

  autoCompleteJS.input.addEventListener("selection", function (e) {
    console.log('selection detail'); // ==> this doesn't appear in dev tools
    // ...
  });

I'm doing it exactly like in the codepen example but why is my code not working? what am I doing wrong?

any help is appreciated..

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!